From: Keir Fraser Date: Wed, 26 Sep 2007 16:11:07 +0000 (+0100) Subject: xend: Slightly finesse allocation of vmpath in xenstore. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14937^2~13 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=884ec5f334cdd0fe27b6e0dc7da27aa18519fc02;p=xen.git xend: Slightly finesse allocation of vmpath in xenstore. Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 35149ed4eb..73ae50bffb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -355,7 +355,9 @@ class XendDomainInfo: self.vmpath = vmpath i = 0 while self.vmpath == None: - self.vmpath = XS_VMROOT + self.info['uuid'] + '/' + str(i) + self.vmpath = XS_VMROOT + self.info['uuid'] + if i != 0: + self.vmpath = self.vmpath + '-' + str(i) try: if self._readVm("uuid"): self.vmpath = None